try:
    age = int(input("请输入年龄:"))
    x = 10 / age
except (ValueError,ZeroDivisionError):
    print("请输入合理的年龄")
else:
    print(f"age is {age}")
    print(f"x is {x}")


# try:
#     age = int(input("请输入年龄:"))
#     x = 10 / age
# except (ValueError):
#     print("请输入合理的年龄")
# except (ZeroDivisionError):
#     print("异常")
# else:
#     print(f"age is {age}")
#     print(f"x is {x}")

